<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Test::Differences - Test strings and data structures and show differences if not ok - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Test-Differences - MetaCPAN" href="https://metacpan.org/dist/Test-Differences/releases.rss" />
        <link rel="canonical" href="./Test::Differences.html" />
        <meta name="description" content="Test strings and data structures and show differences if not ok" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Test::Differences" />
<meta name="twitter:title"       content="Test::Differences" />
<meta name="twitter:description" content="Test strings and data structures and show differences if not ok" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Test::Differences.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Test-Differences was released.">
      <span class="relatize">12 Oct 2023 20:54:50 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Test-Differences">Test-Differences</a>
  </li>
  <li>
    Module version: 0.71
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Test-Differences/source/lib/Test/Differences.pm">Source</a>
    (<a href="https://metacpan.org/dist/Test-Differences/source/lib/Test/Differences.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Test-Differences/source/lib/Test">Browse</a>
    (<a href="https://metacpan.org/dist/Test-Differences/source/lib/Test?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Test-Differences/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Test-Differences/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/DrHyde/Test-Differences">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/DrHyde/Test-Differences/issues">Issues</a>
      (0)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Test-Differences+0.71" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/T/Test-Differences.html?oncpan=1&amp;distmat=1&amp;version=0.71&amp;grade=2" style="color: #090">1850</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/T/Test-Differences.html?oncpan=1&amp;distmat=1&amp;version=0.71&amp;grade=3" style="color: #900">1</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/T/Test-Differences.html?oncpan=1&amp;distmat=1&amp;version=0.71&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/DCANTRELL/Test-Differences-0.71">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Test-Differences who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 2
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Test-Differences-0.71/index.html">81.68% Coverage </a>
    </li>
    <li>
      License: unknown, artistic_1, gpl_1
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Test-Differences/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/Test-Differences-0.71.tar.gz">
      Download (<span itemprop="fileSize">14.95KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FDCANTRELL%2FTest-Differences-0.71%2Flib%2FTest%2FDifferences.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Test-Differences/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Test-Differences/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Test-Differences">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Test-Differences">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Test/Differences.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="DCANTRELL/Test-Differences-0.71"
>0.71
  (DCANTRELL on 2023-10-12)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.70"
>0.70
  (DCANTRELL on 2023-07-07)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.69"
>0.69
  (DCANTRELL on 2022-01-07)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.68"
>0.68
  (DCANTRELL on 2021-05-18)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.67"
>0.67
  (DCANTRELL on 2019-03-06)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.66"
>0.66
  (DCANTRELL on 2019-02-27)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.65"
>0.65
  (DCANTRELL on 2019-02-19)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.64"
>0.64
  (DCANTRELL on 2015-11-22)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.63"
>0.63
  (DCANTRELL on 2014-11-20)</option>
<option
  
  value="OVID/Test-Differences-0.61"
>0.61
  (OVID on 2011-04-16)</option>
<option
  
  value="OVID/Test-Differences-0.60"
>0.60
  (OVID on 2011-04-16)</option>
<option
  
  value="OVID/Test-Differences-0.500"
>0.500
  (OVID on 2009-10-17)</option>
<option
  
  value="OVID/Test-Differences-0.49_02"
>0.49_02 DEV
  (OVID on 2008-08-02)</option>
<option
  
  value="OVID/Test-Differences-0.49_01"
>0.49_01 DEV
  (OVID on 2008-08-01)</option>
<option
  
  value="OVID/Test-Differences-0.4801"
>0.4801
  (OVID on 2008-07-30)</option>
<option
  
  value="RBS/Test-Differences-0.47"
>0.47
  (RBS on 2003-06-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="DCANTRELL/Test-Differences-0.62"
>0.62
  (DCANTRELL on 2014-06-25)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.61_01"
>0.61_01 DEV
  (DCANTRELL on 2014-06-19)</option>
<option
  
  value="RBS/Test-Differences-0.46"
>0.46
  (RBS on 2002-08-27)</option>
<option
  
  value="RBS/Test-Differences-0.45"
>0.45
  (RBS on 2002-07-14)</option>
<option
  
  value="RBS/Test-Differences-0.44"
>0.44
  (RBS on 2002-07-08)</option>
<option
  
  value="RBS/Test-Differences-0.43"
>0.43
  (RBS on 2002-05-13)</option>
<option
  
  value="RBS/Test-Differences-0.42"
>0.42
  (RBS on 2002-01-03)</option>
<option
  
  value="RBS/Test-Differences-0.41"
>0.41
  (RBS on 2001-12-21)</option>
<option
  
  value="RBS/Test-Differences-0.4"
>0.4
  (RBS on 2001-12-21)</option>
<option
  
  value="RBS/Test-Differences-0.3"
>0.3
  (RBS on 2001-12-15)</option>
<option
  
  value="RBS/Test-Differences-0.2"
>0.2
  (RBS on 2001-12-13)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/DCANTRELL/Test-Differences-0.71/diff/' + encodeURIComponent(this.value) + '/lib/Test/Differences.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="DCANTRELL/Test-Differences-0.71"
>0.71
  (DCANTRELL on 2023-10-12)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.70"
>0.70
  (DCANTRELL on 2023-07-07)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.69"
>0.69
  (DCANTRELL on 2022-01-07)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.68"
>0.68
  (DCANTRELL on 2021-05-18)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.67"
>0.67
  (DCANTRELL on 2019-03-06)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.66"
>0.66
  (DCANTRELL on 2019-02-27)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.65"
>0.65
  (DCANTRELL on 2019-02-19)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.64"
>0.64
  (DCANTRELL on 2015-11-22)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.63"
>0.63
  (DCANTRELL on 2014-11-20)</option>
<option
  
  value="OVID/Test-Differences-0.61"
>0.61
  (OVID on 2011-04-16)</option>
<option
  
  value="OVID/Test-Differences-0.60"
>0.60
  (OVID on 2011-04-16)</option>
<option
  
  value="OVID/Test-Differences-0.500"
>0.500
  (OVID on 2009-10-17)</option>
<option
  
  value="OVID/Test-Differences-0.49_02"
>0.49_02 DEV
  (OVID on 2008-08-02)</option>
<option
  
  value="OVID/Test-Differences-0.49_01"
>0.49_01 DEV
  (OVID on 2008-08-01)</option>
<option
  
  value="OVID/Test-Differences-0.4801"
>0.4801
  (OVID on 2008-07-30)</option>
<option
  
  value="RBS/Test-Differences-0.47"
>0.47
  (RBS on 2003-06-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="DCANTRELL/Test-Differences-0.62"
>0.62
  (DCANTRELL on 2014-06-25)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.61_01"
>0.61_01 DEV
  (DCANTRELL on 2014-06-19)</option>
<option
  
  value="RBS/Test-Differences-0.46"
>0.46
  (RBS on 2002-08-27)</option>
<option
  
  value="RBS/Test-Differences-0.45"
>0.45
  (RBS on 2002-07-14)</option>
<option
  
  value="RBS/Test-Differences-0.44"
>0.44
  (RBS on 2002-07-08)</option>
<option
  
  value="RBS/Test-Differences-0.43"
>0.43
  (RBS on 2002-05-13)</option>
<option
  
  value="RBS/Test-Differences-0.42"
>0.42
  (RBS on 2002-01-03)</option>
<option
  
  value="RBS/Test-Differences-0.41"
>0.41
  (RBS on 2001-12-21)</option>
<option
  
  value="RBS/Test-Differences-0.4"
>0.4
  (RBS on 2001-12-21)</option>
<option
  
  value="RBS/Test-Differences-0.3"
>0.3
  (RBS on 2001-12-15)</option>
<option
  
  value="RBS/Test-Differences-0.2"
>0.2
  (RBS on 2001-12-13)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Capture::Tiny" title="Capture::Tiny" class="ellipsis">Capture::Tiny</a></li>
  <li><a href="https://metacpan.org/pod/Data::Dumper" title="Data::Dumper" class="ellipsis">Data::Dumper</a></li>
  <li><a href="https://metacpan.org/pod/Test::More" title="Test::More" class="ellipsis">Test::More</a></li>
  <li><a href="./Text::Diff.html" title="Text::Diff" class="ellipsis">Text::Diff</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Test::Differences/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Test%3A%3ADifferences">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Test-Differences">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/DCANTRELL/Test-Differences-0.71/view/lib/Test/Differences.pm">This version</a>
    </li>
    <li>
      <a href="./Test::Differences.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/PABLROD"><img src="https://www.gravatar.com/avatar/ebde00b92598043f6cf8d9071e7d5c2b?d=identicon&amp;s=20" title="PABLROD" alt="PABLROD"></a>
<a class="display-all" href="https://metacpan.org/author/SREZIC"><img src="https://www.gravatar.com/avatar/5fa5a4e5ffdf883a1fcb1840c915d485?d=identicon&amp;s=20" title="SREZIC" alt="SREZIC"></a>
<a class="display-all" href="https://metacpan.org/author/JMATES"><img src="https://www.gravatar.com/avatar/06accb84e6519284be3941ff72e429cb?d=identicon&amp;s=20" title="JMATES" alt="JMATES"></a>
<a class="display-all" href="https://metacpan.org/author/DOHERTY"><img src="https://www.gravatar.com/avatar/9533c36b6385c8321bad636c98e9c0a8?d=identicon&amp;s=20" title="DOHERTY" alt="DOHERTY"></a>
<a class="display-all" href="https://metacpan.org/author/VEESH"><img src="https://www.gravatar.com/avatar/5ec5a5223fe6ee8e96b03dca47b670ea?d=identicon&amp;s=20" title="VEESH" alt="VEESH"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Test-Differences/plussers">14 PAUSE users</a>
</div>
<div>
    7 non-PAUSE users
</div>
</div>
    </li>
    <li>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/DCANTRELL" class="author-name">David Cantrell</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Test/Differences.pm&#39;" class="">
<option
  selected
  value="DCANTRELL/Test-Differences-0.71"
>0.71
  (DCANTRELL on 2023-10-12)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.70"
>0.70
  (DCANTRELL on 2023-07-07)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.69"
>0.69
  (DCANTRELL on 2022-01-07)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.68"
>0.68
  (DCANTRELL on 2021-05-18)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.67"
>0.67
  (DCANTRELL on 2019-03-06)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.66"
>0.66
  (DCANTRELL on 2019-02-27)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.65"
>0.65
  (DCANTRELL on 2019-02-19)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.64"
>0.64
  (DCANTRELL on 2015-11-22)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.63"
>0.63
  (DCANTRELL on 2014-11-20)</option>
<option
  
  value="OVID/Test-Differences-0.61"
>0.61
  (OVID on 2011-04-16)</option>
<option
  
  value="OVID/Test-Differences-0.60"
>0.60
  (OVID on 2011-04-16)</option>
<option
  
  value="OVID/Test-Differences-0.500"
>0.500
  (OVID on 2009-10-17)</option>
<option
  
  value="OVID/Test-Differences-0.49_02"
>0.49_02 DEV
  (OVID on 2008-08-02)</option>
<option
  
  value="OVID/Test-Differences-0.49_01"
>0.49_01 DEV
  (OVID on 2008-08-01)</option>
<option
  
  value="OVID/Test-Differences-0.4801"
>0.4801
  (OVID on 2008-07-30)</option>
<option
  
  value="RBS/Test-Differences-0.47"
>0.47
  (RBS on 2003-06-17)</option>
<optgroup label="BackPAN">'
<option
  
  value="DCANTRELL/Test-Differences-0.62"
>0.62
  (DCANTRELL on 2014-06-25)</option>
<option
  
  value="DCANTRELL/Test-Differences-0.61_01"
>0.61_01 DEV
  (DCANTRELL on 2014-06-19)</option>
<option
  
  value="RBS/Test-Differences-0.46"
>0.46
  (RBS on 2002-08-27)</option>
<option
  
  value="RBS/Test-Differences-0.45"
>0.45
  (RBS on 2002-07-14)</option>
<option
  
  value="RBS/Test-Differences-0.44"
>0.44
  (RBS on 2002-07-08)</option>
<option
  
  value="RBS/Test-Differences-0.43"
>0.43
  (RBS on 2002-05-13)</option>
<option
  
  value="RBS/Test-Differences-0.42"
>0.42
  (RBS on 2002-01-03)</option>
<option
  
  value="RBS/Test-Differences-0.41"
>0.41
  (RBS on 2001-12-21)</option>
<option
  
  value="RBS/Test-Differences-0.4"
>0.4
  (RBS on 2001-12-21)</option>
<option
  
  value="RBS/Test-Differences-0.3"
>0.3
  (RBS on 2001-12-15)</option>
<option
  
  value="RBS/Test-Differences-0.2"
>0.2
  (RBS on 2001-12-13)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Test-Differences">Test-Differences-0.71</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage four &#10;
          • 385 direct dependents &#10;          • 3446 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Test-Differences-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Test-Differences-0.71">
    <input type="hidden" name="author" value="DCANTRELL">
    <input type="hidden" name="distribution" value="Test-Differences">
    <button type="submit" class="favorite highlight"><span>21</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Test::Differences.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>21</span> ++</a>
</div>
   / <span>Test::Differences</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Test::Differences.html#NAME">NAME</a></li>
  <li><a href="./Test::Differences.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Test::Differences.html#EXPORT">EXPORT</a></li>
  <li><a href="./Test::Differences.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Test::Differences.html#OPTIONS">OPTIONS</a></li>
  <li><a href="./Test::Differences.html#DIFF-STYLES">DIFF STYLES</a></li>
  <li><a href="./Test::Differences.html#UNICODE">UNICODE</a></li>
  <li><a href="./Test::Differences.html#Unknown::Values">Unknown::Values</a></li>
  <li><a href="./Test::Differences.html#LIMITATIONS">LIMITATIONS</a>
    <ul>
      <li><a href="./Test::Differences.html#Test-or-Test::More">Test or Test::More</a></li>
      <li><a href="./Test::Differences.html#Exporting">Exporting</a></li>
      <li><a href="./Test::Differences.html#Booleans">Booleans</a></li>
      <li><a href="./Test::Differences.html#Unicode">Unicode</a></li>
      <li><a href="./Test::Differences.html#Data::Dumper-and-older-Perls.">Data::Dumper and older Perls.</a></li>
      <li><a href="./Test::Differences.html#Code-refs">Code-refs</a></li>
    </ul>
  </li>
  <li><a href="./Test::Differences.html#AUTHORS">AUTHORS</a></li>
  <li><a href="./Test::Differences.html#LICENSE">LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Test::Differences - Test strings and data structures and show differences if not ok</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>   use Test;    ## Or use Test::More
   use Test::Differences;

   eq_or_diff $got,  &quot;a\nb\nc\n&quot;,   &quot;testing strings&quot;;
   eq_or_diff \@got, [qw( a b c )], &quot;testing arrays&quot;;

   ## Passing options:
   eq_or_diff $got, $expected, $name, { context =&gt; 300 };  ## options

   ## Using with DBI-like data structures

   use DBI;

   ... open connection &amp; prepare statement and @expected_... here...

   eq_or_diff $sth-&gt;fetchall_arrayref, \@expected_arrays  &quot;testing DBI arrays&quot;;
   eq_or_diff $sth-&gt;fetchall_hashref,  \@expected_hashes, &quot;testing DBI hashes&quot;;

   ## To force textual or data line numbering (text lines are numbered 1..):
   eq_or_diff_text ...;
   eq_or_diff_data ...;</code></pre>

<h1 id="EXPORT">EXPORT</h1>

<p>This module exports three test functions and four diff-style functions:</p>

<ul>

<li><p>Test functions</p>

<ul>

<li><p><code>eq_or_diff</code></p>

</li>
<li><p><code>eq_or_diff_data</code></p>

</li>
<li><p><code>eq_or_diff_text</code></p>

</li>
</ul>

</li>
<li><p>Diff style functions</p>

<ul>

<li><p><code>table_diff</code> (the default)</p>

</li>
<li><p><code>unified_diff</code></p>

</li>
<li><p><code>oldstyle_diff</code></p>

</li>
<li><p><code>context_diff</code></p>

</li>
</ul>

</li>
</ul>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>When the code you&#39;re testing returns multiple lines, records or data structures and they&#39;re just plain wrong, an equivalent to the Unix <code>diff</code> utility may be just what&#39;s needed. Here&#39;s output from an example test script that checks two text documents and then two (trivial) data structures:</p>

<pre><code> t/99example....1..3
 not ok 1 - differences in text
 #     Failed test ((eval 2) at line 14)
 #     +---+----------------+----------------+
 #     | Ln|Got             |Expected        |
 #     +---+----------------+----------------+
 #     |  1|this is line 1  |this is line 1  |
 #     *  2|this is line 2  |this is line b  *
 #     |  3|this is line 3  |this is line 3  |
 #     +---+----------------+----------------+
 not ok 2 - differences in whitespace
 #     Failed test ((eval 2) at line 20)
 #     +---+------------------+------------------+
 #     | Ln|Got               |Expected          |
 #     +---+------------------+------------------+
 #     |  1|        indented  |        indented  |
 #     *  2|        indented  |\tindented        *
 #     |  3|        indented  |        indented  |
 #     +---+------------------+------------------+
 not ok 3
 #     Failed test ((eval 2) at line 22)
 #     +----+-------------------------------------+----------------------------+
 #     | Elt|Got                                  |Expected                    |
 #     +----+-------------------------------------+----------------------------+
 #     *   0|bless( [                             |[                           *
 #     *   1|  &#39;Move along, nothing to see here&#39;  |  &#39;Dry, humorless message&#39;  *
 #     *   2|], &#39;Test::Builder&#39; )                 |]                           *
 #     +----+-------------------------------------+----------------------------+
 # Looks like you failed 3 tests of 3.</code></pre>

<p>eq_or_diff_...() compares two strings or (limited) data structures and either emits an ok indication or a side-by-side diff. Test::Differences is designed to be used with Test.pm and with Test::Simple, Test::More, and other Test::Builder based testing modules. As the SYNOPSIS shows, another testing module must be used as the basis for your test suite.</p>

<h1 id="OPTIONS">OPTIONS</h1>

<p>The options to <code>eq_or_diff</code> give some fine-grained control over the output.</p>

<ul>

<li><p><code>context</code></p>

<p>This allows you to control the amount of context shown:</p>

<pre><code>   eq_or_diff $got, $expected, $name, { context =&gt; 50000 };</code></pre>

<p>will show you lots and lots of context. Normally, eq_or_diff() uses some heuristics to determine whether to show 3 lines of context (like a normal unified diff) or 25 lines.</p>

</li>
<li><p><code>data_type</code></p>

<p><code>text</code> or <code>data</code>. This normally defaults to <code>data</code>. If, however, neither of <code>$got</code> or <code>$expected</code> is a reference then it defaults to <code>text</code>. You can also force one or the other by calling <code>eq_or_diff_text</code> or <code>eq_or_diff_data</code>.</p>

<p>The difference is that in text mode lines are numbered from 1, but in data mode from 0 (and are refered to as &#39;elements&#39; (Elt) instead of lines):</p>

<pre><code>    # +---+-------+----------+
    # | Ln|Got    |Expected  |
    # +---+-------+----------+
    # *  1|&#39;foo&#39;  |&#39;bar&#39;     *
    # +---+-------+----------+

    # +----+---------+----+----------+
    # | Elt|Got      | Elt|Expected  |
    # +----+---------+----+----------+
    # *   0|[        *   0|&#39;bar&#39;     *
    # *   1|  &#39;foo&#39;  *    |          |
    # *   2|]        *    |          |
    # +----+---------+----+----------+</code></pre>

<p>The difference is purely cosmetic, it makes no difference to how comparisons are performed.</p>

</li>
<li><p><code>Sortkeys</code></p>

<p>If passed, whatever value is added is used as the argument for <a href="https://metacpan.org/pod/Data::Dumper">Data::Dumper</a> Sortkeys option. See the <a href="https://metacpan.org/pod/Data::Dumper">Data::Dumper</a> docs to understand how you can control the Sortkeys behavior.</p>

</li>
<li><p><code>filename_a</code> and <code>filename_b</code></p>

<p>The column headers to use in the output. They default to &#39;Got&#39; and &#39;Expected&#39;.</p>

</li>
</ul>

<h1 id="DIFF-STYLES"><a id="DIFF"></a>DIFF STYLES</h1>

<p>For extremely long strings, a table diff can wrap on your screen and be hard to read. If you are comfortable with different diff formats, you can switch to a format more suitable for your data. These are the four formats supported by the <a href="./Text::Diff.html">Text::Diff</a> module and are set with the following functions:</p>

<ul>

<li><p><code>table_diff</code> (the default)</p>

</li>
<li><p><code>unified_diff</code></p>

</li>
<li><p><code>oldstyle_diff</code></p>

</li>
<li><p><code>context_diff</code></p>

</li>
</ul>

<p>You can run the following to understand the different diff output styles:</p>

<pre><code> use Test::More &#39;no_plan&#39;;
 use Test::Differences;

 my $long_string = join &#39;&#39; =&gt; 1..40;

 TODO: {
     local $TODO = &#39;Testing diff styles&#39;;

     # this is the default and does not need to explicitly set unless you need
     # to reset it back from another diff type
     table_diff;
     eq_or_diff $long_string, &quot;-$long_string&quot;, &#39;table diff&#39;;

     unified_diff;
     eq_or_diff $long_string, &quot;-$long_string&quot;, &#39;unified diff&#39;;

     context_diff;
     eq_or_diff $long_string, &quot;-$long_string&quot;, &#39;context diff&#39;;

     oldstyle_diff;
     eq_or_diff $long_string, &quot;-$long_string&quot;, &#39;oldstyle diff&#39;;
 }</code></pre>

<h1 id="UNICODE">UNICODE</h1>

<p>Generally you&#39;ll find that the following test output is disappointing.</p>

<pre><code>    use Test::Differences;
    use utf8;

    my $want = { &#39;Traditional Chinese&#39; =&gt; &#39;&#x4E2D;&#x570B;&#39; };
    my $have = { &#39;Traditional Chinese&#39; =&gt; &#39;&#x4E2D;&#x56FD;&#39; };

    eq_or_diff $have, $want, &#39;Unicode, baby&#39;;</code></pre>

<p>Here&#39;s what you get:</p>

<pre><code>    #   Failed test &#39;Unicode, baby&#39;
    #   at t/unicode.t line 12.
    # +----+-----------------------+-----------------------+
    # | Elt|Got                    |Expected               |
    # +----+-----------------------+-----------------------+
    # |   0|&#39;Traditional Chinese&#39;  |&#39;Traditional Chinese&#39;  |
    # *   1|&#39;\x{4e2d}\x{56fd}&#39;     |&#39;\x{4e2d}\x{570b}&#39;     *
    # +----+-----------------------+-----------------------+
    # Looks like you failed 1 test of 1.
    Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/1 subtests</code></pre>

<p>A patch to fix this would be *most* welcome.</p>

<h1 id="Unknown::Values"><a id="Unknown"></a>Unknown::Values</h1>

<p><a href="https://metacpan.org/pod/Unknown::Values">Unknown::Values</a> is a module which provides values which will never compare as being the same as anything else, not even the same as itself.</p>

<p>If code looks too hard at one of these values (and Test::Differences looks very hard indeed) that is a fatal error. This means that while we can detect the presence of these beasties, and tell you that they compare different, for Complicated Internals Reasons we can&#39;t show you much context. Sorry.</p>

<p>NB that the support for these is experimental and relies on an undocumented unstable interface in Unknown::Values. If that fails then Test::Differences will <i>probably</i> just die when it sees them instead of telling you that the comparison failed.</p>

<h1 id="LIMITATIONS">LIMITATIONS</h1>

<h2 id="Test-or-Test::More"><a id="Test"></a><code>Test</code> or <code>Test::More</code></h2>

<p>This module &quot;mixes in&quot; with Test.pm or any of the test libraries based on Test::Builder (Test::Simple, Test::More, etc). It does this by peeking to see whether Test.pm or Test/Builder.pm is in %INC, so if you are not using one of those, it will print a warning and play dumb by not emitting test numbers (or incrementing them). If you are using one of these, it should interoperate nicely.</p>

<h2 id="Exporting">Exporting</h2>

<p>Exports all 3 functions by default (and by design). Use</p>

<pre><code>    use Test::Differences ();</code></pre>

<p>to suppress this behavior if you don&#39;t like the namespace pollution.</p>

<p>This module will not override functions like ok(), is(), is_deeply(), etc. If it did, then you could <code>eval &quot;use Test::Differences qw( is_deeply );&quot;</code> to get automatic upgrading to diffing behaviors without the <code>sub my_ok</code> shown above. Test::Differences intentionally does not provide this behavior because this would mean that Test::Differences would need to emulate every popular test module out there, which would require far more coding and maintenance that I&#39;m willing to do. Use the eval and my_ok deployment shown above if you want some level of automation.</p>

<h2 id="Booleans">Booleans</h2>

<p>Historically, true and false (whether resulting from logical-not <code>!</code> or from equality checks like <code>==</code>) were represented in perl as numeric <code>1</code> for true and the empty string <code>&#39;&#39;</code> for false. In perl 5.36.0 they became real Boolean values which for backward compatibility also have their old numeric/string values. In 5.38 (and in dev releases from 5.37.2 onwards) <a href="https://metacpan.org/pod/Data::Dumper">Data::Dumper</a> belatedly learned about this, and so Test::Differences (which uses Data::Dumper under the bonnet) can also tell the difference.</p>

<p>This means that `eq_or_diff(1, !!1)` will behave differently depending on whether you are using perl 5.38 or later (in which case it will say they are different) or 5.36 or earlier (which will say they are the same).</p>

<h2 id="Unicode">Unicode</h2>

<p>Perls before 5.6.0 don&#39;t support characters &gt; 255 at all, and 5.6.0 seems broken. This means that you might get odd results using perl5.6.0 with unicode strings.</p>

<h2 id="Data::Dumper-and-older-Perls."><a id="Data"></a><a id="Data::Dumper-and-older-Perls"></a><code>Data::Dumper</code> and older Perls.</h2>

<p>Relies on Data::Dumper (for now), which, prior to perl5.8, will not always report hashes in the same order. <code> $Data::Dumper::Sortkeys </code> <i>is</i> set to 1, so on more recent versions of Data::Dumper, this should not occur. Check CPAN to see if it&#39;s been peeled out of the main perl distribution and backported. Reported by Ilya Martynov &lt;ilya@martynov.org&gt;, although the Sortkeys &quot;future perfect&quot; workaround has been set in anticipation of a new Data::Dumper for a while. Note that the two hashes should report the same here:</p>

<pre><code>    not ok 5
    #     Failed test (t/ctrl/05-home.t at line 51)
    # +----+------------------------+----+------------------------+
    # | Elt|Got                     | Elt|Expected                |
    # +----+------------------------+----+------------------------+
    # |   0|{                       |   0|{                       |
    # |   1|  &#39;password&#39; =&gt; &#39;&#39;,     |   1|  &#39;password&#39; =&gt; &#39;&#39;,     |
    # *   2|  &#39;method&#39; =&gt; &#39;login&#39;,  *    |                        |
    # |   3|  &#39;ctrl&#39; =&gt; &#39;home&#39;,     |   2|  &#39;ctrl&#39; =&gt; &#39;home&#39;,     |
    # |    |                        *   3|  &#39;method&#39; =&gt; &#39;login&#39;,  *
    # |   4|  &#39;email&#39; =&gt; &#39;test&#39;     |   4|  &#39;email&#39; =&gt; &#39;test&#39;     |
    # |   5|}                       |   5|}                       |
    # +----+------------------------+----+------------------------+</code></pre>

<p>Data::Dumper also overlooks the difference between</p>

<pre><code>    $a[0] = \$a[1];
    $a[1] = \$a[0];   # $a[0] = \$a[1]</code></pre>

<p>and</p>

<pre><code>    $x = \$y;
    $y = \$x;
    @a = ( $x, $y );  # $a[0] = \$y, not \$a[1]</code></pre>

<p>The former involves two scalars, the latter 4: $x, $y, and @a[0,1]. This was carefully explained to me in words of two syllables or less by Yves Orton &lt;demerphq@hotmail.com&gt;. The plan to address this is to allow you to select Data::Denter or some other module of your choice as an option.</p>

<h2 id="Code-refs"><a id="Code"></a>Code-refs</h2>

<p>Test::Differences turns on <code>$Data::Dumper::Deparse</code>, so any code-refs in your data structures will be turned into text before they are examined, using <a href="https://metacpan.org/pod/B::Deparse">B::Deparse</a>. The precise text generated for a sub-ref might not be what you expect as it is generated from the compiled version of the code, but it should at least be consistent and spot differences correctly.</p>

<p>You can turn this behaviour off by setting <code>$Test::Differences::NoDeparse</code>.</p>

<h1 id="AUTHORS">AUTHORS</h1>

<pre><code>    Barrie Slaymaker &lt;barries@slaysys.com&gt; - original author

    Curtis &quot;Ovid&quot; Poe &lt;ovid@cpan.org&gt;

    David Cantrell &lt;david@cantrell.org.uk&gt;</code></pre>

<h1 id="LICENSE">LICENSE</h1>

<p>Copyright Barrie Slaymaker, Curtis &quot;Ovid&quot; Poe, and David Cantrell.</p>

<p>All Rights Reserved.</p>

<p>You may use, distribute and modify this software under the terms of the GNU public license, any version, or the Artistic license.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Test::Differences, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Test::Differences</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Test::Differences</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Test::Differences.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
